const adminRoles = [{
  id: 1,
  name: 'dashboard',
  description: null,
  path: '/',
  component: 'DashBoard',
  hidden: 1, // 是否隐藏菜单，1-显示 0-隐藏
  sort: 0,
  parentId: null,
  permName: null,
  redirect: '/index',
  //title: '框架',
  //icon: 'el-icon-s-operation',
  children: [ // 注意，只有一个子路由或者没有子路由表示渲染菜单时为单一级路由
    {
      id: 2,
      name: 'homeview',
      description: null,
      path: '/index',
      component: 'HomeView',
      hidden: 1,
      sort: 0,
      parentId: 1,
      permName: null,
      redirect: '',
      title: '主页',
      icon: 'el-icon-odometer',
      children: null
    }
  ]
},
{
  id: 3,
  name: 'dashboard',
  description: null,
  path: '/activity',
  component: 'DashBoard',
  hidden: 1,
  sort: 0,
  parentId: null,
  permName: null,
  redirect: '/activity',
  title: '活动管理',
  icon: 'el-icon-s-operation',
  children: [
    {
      id: 4,
      name: 'activity',
      description: null,
      path: '/activity',
      component: 'ActivityView',
      hidden: 1,
      sort: 0,
      parentId: 1,
      permName: null,
      redirect: '',
      title: '活动列表',
      icon: 'el-icon-sunrise',
      children: null
    },
    {
      id: 5,
      name: 'activitycategory',
      description: null,
      path: '/activitycategory',
      component: 'ActivityCategory',
      hidden: 1,
      sort: 0,
      parentId: 1,
      permName: null,
      redirect: '',
      title: '活动分类',
      icon: 'el-icon-postcard',
      children: null
    },
  ]
},
{
  id: 6,
  name: 'dashboard',
  description: null,
  path: '/admin',
  component: 'DashBoard',
  hidden: 1,
  sort: 0,
  parentId: null,
  permName: null,
  redirect: '/admin',
  title: '权限管理',
  icon: 'el-icon-s-operation',
  children: [
    {
      id: 7,
      name: 'adminlist',
      description: null,
      path: '/admin',
      component: 'AdminList',
      hidden: 1,
      sort: 0,
      parentId: 1,
      permName: null,
      redirect: '',
      title: '管理员管理',
      icon: 'el-icon-s-custom',
      children: null
    },
    {
      id: 8,
      name: 'role',
      description: null,
      path: '/role',
      component: 'RoleView',
      hidden: 1,
      sort: 0,
      parentId: 1,
      permName: null,
      redirect: '',
      title: '角色管理',
      icon: 'el-icon-lock',
      children: null
    },
  ]
},
{
  id: 9,
  name: 'dashboard',
  description: null,
  path: '/setting',
  component: 'DashBoard',
  hidden: 1,
  sort: 0,
  parentId: null,
  permName: null,
  redirect: '/setting',
  title: '设置',
  icon: 'el-icon-s-operation',
  children: [
    {
      id: 10,
      name: 'setting',
      description: null,
      path: '/setting',
      component: 'SettingView',
      hidden: 1,
      sort: 0,
      parentId: 1,
      permName: null,
      redirect: '',
      title: '后台配置',
      icon: 'el-icon-lock',
      children: null
    },
    {
      id: 11,
      name: 'about',
      description: null,
      path: '/about',
      component: 'AboutView',
      hidden: 1,
      sort: 0,
      parentId: null,
      permName: null,
      redirect: '',
      title: '关于',
      icon: 'el-icon-info',
      children: null
    }
  ]
}];

const userRoles = [{
  id: 1,
  name: 'dashboard',
  description: null,
  path: '/',
  component: 'DashBoard',
  hidden: 1, // 是否隐藏菜单，1-显示 0-隐藏
  sort: 0,
  parentId: null,
  permName: null,
  redirect: '/index',
  //title: '框架',
  //icon: 'el-icon-s-operation',
  children: [ // 注意，只有一个子路由或者没有子路由表示渲染菜单时为单一级路由
    {
      id: 2,
      name: 'homeview',
      description: null,
      path: '/index',
      component: 'HomeView',
      hidden: 1,
      sort: 0,
      parentId: 1,
      permName: null,
      redirect: '',
      title: '主页',
      icon: 'el-icon-odometer',
      children: null
    }
  ]
},
{
  id: 9,
  name: 'dashboard',
  description: null,
  path: '/setting',
  component: 'DashBoard',
  hidden: 1,
  sort: 0,
  parentId: null,
  permName: null,
  redirect: '/setting',
  title: '设置',
  icon: 'el-icon-s-operation',
  children: [
    {
      id: 10,
      name: 'setting',
      description: null,
      path: '/setting',
      component: 'SettingView',
      hidden: 1,
      sort: 0,
      parentId: 1,
      permName: null,
      redirect: '',
      title: '后台配置',
      icon: 'el-icon-lock',
      children: null
    },
    {
      id: 11,
      name: 'about',
      description: null,
      path: '/about',
      component: 'AboutView',
      hidden: 1,
      sort: 0,
      parentId: null,
      permName: null,
      redirect: '',
      title: '关于',
      icon: 'el-icon-info',
      children: null
    }
  ]
}]

module.exports = { adminRoles, userRoles };